#include "stdafx.h"

DESCRIPTION_11_TEST_SUITE(UnorderedTexture3DViewDescription)

BOOST_FIXTURE_TEST_CASE(Default, TestUnorderedTexture3DViewDescription)
{
	BOOST_REQUIRE_EQUAL(D3D11_UAV_DIMENSION_TEXTURE3D, m_desc.ViewDimension);
	BOOST_REQUIRE_EQUAL(DXGI_FORMAT_UNKNOWN, m_desc.Format);
	BOOST_REQUIRE_EQUAL(0, m_desc.Texture3D.MipSlice);
}

#define UNORDERED_TEXTURE3D_VIEW_TEST_CASE(field_, type_, value_) \
	DESCRIPTION_11_SETTER_FIXTURE_TEST_CASE(field_##_, UnorderedTexture3DViewDescription, \
		type_, value_, Texture3D.field_)

UNORDERED_TEXTURE3D_VIEW_TEST_CASE(MipSlice, UINT, 2)
UNORDERED_TEXTURE3D_VIEW_TEST_CASE(FirstWSlice, UINT, 2)
UNORDERED_TEXTURE3D_VIEW_TEST_CASE(WSize, UINT, 2)

BOOST_AUTO_TEST_SUITE_END()
